package com.survey.service;

import com.survey.pojo.data.ExamAnswerVO;
import com.survey.pojo.data.QuestionBackVO;
import com.survey.pojo.data.SurveyDO;
import com.survey.pojo.vo.SurveyVO;
import com.survey.utils.PageBean;
import com.survey.utils.Result;

import java.util.List;

/** 
 * <br/>
 * Created by survey on 2018/08/03
 */
public interface SurveyService {

	String addSurvey(SurveyVO surveyVO) throws Exception;

	Result updateSurvey(SurveyVO surveyVO) throws Exception;
	
	SurveyDO findDetailSurvey(SurveyVO surveyVO) throws Exception;

	PageBean<SurveyVO> listSurvey(SurveyVO surveyVO) throws Exception;

	QuestionBackVO back(Integer sid);

    Result listSurveyPage(SurveyVO surveyVO) throws Exception;
	
	Result countSurvey(SurveyVO surveyVO) throws Exception;
	
	Result deleteSurvey(SurveyVO surveyVO) throws Exception;
	List<SurveyDO> listSurvey();

	List<SurveyVO> listAllSurvey();
	Result submit(ExamAnswerVO answerVO );

	List<SurveyDO> listhotsurvey();

	SurveyDO privateSurveyShow(String sid);

	PageBean<SurveyDO> listSurveyisopen1(SurveyVO surveyVO) throws Exception;

	SurveyDO find(String name);
}